package BothSide;

import java.io.File;
import java.io.FilenameFilter;

public class ImageFileFilter implements FilenameFilter{



     	public boolean accept(File arg0, String arg1) {

     		if (arg1.contains("jpg") || arg1.contains("gif") || arg1.contains("png")){
     			return true;
     		}

     		return false;
     	}
     }


